import { axios } from '@/utils/request'

/**
 * 查询
 *
 * @author oo
 * @date 2020/5/25 01:31
 */
export function classDynamicPage (parameter) {
  return axios({
    url: '/ClassDynamic/Page',
    method: 'get',
    params: parameter
  })
}

/**
 * 
 *
 * @author oo
 * @date 2020/6/21 23:50
 */
export function classDynamicList (parameter) {
  return axios({
    url: '/ClassDynamic/List',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加
 *
 * @author oo
 * @date 2020/5/25 01:31
 */
export function classDynamicAdd (parameter) {
  return axios({
    url: '/ClassDynamic/Add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑
 *
 * @author oo
 * @date 2020/5/25 01:31
 */
export function classDynamicEdit (parameter) {
  return axios({
    url: '/ClassDynamic/Edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除
 *
 * @author oo
 * @date 2020/5/25 01:31
 */
export function classDynamicDelete (parameter) {
  return axios({
    url: '/ClassDynamic/Delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 屏蔽恢复
 *
 * @author oo
 * @date 2020/5/25 01:31
 */
export function classDynamicChangeStatus (parameter, url) {
  return axios({
    url: url,
    method: 'post',
    data: parameter
  })
}

/**
 * 留言
 *
 * @author oo
 * @date 2020/5/25 01:31
 */
export function leaveMessages (parameter) {
  return axios({
    url: '/ClassDynamic/LeaveMessages',
    method: 'post',
    data: parameter
  })
}


/**
 * 导出系统职位
 *
 * @author oo
 * @date 2021/5/29 16:19
 */
export function classDynamicExport (parameter) {
  // return axios({
  //   url: '/ClassDynamic/export',
  //   method: 'get',
  //   params: parameter,
  //   responseType: 'blob'
  // })
}



/**
 * 留言查询
 *
 * @author oo
 * @date 2020/6/21 23:50
 */
export function leaveMessagePage (parameter) {
  return axios({
    url: '/LeaveMessage/Page',
    method: 'get',
    params: parameter
  })
}

/**
 * 留言列表
 *
 * @author oo
 * @date 2020/6/21 23:50
 */
export function leaveMessageList (parameter) {
  return axios({
    url: '/LeaveMessage/List',
    method: 'get',
    params: parameter
  })
}
/**
 * 留言删除
 *
 * @author oo
 * @date 2020/6/21 23:50
 */
export function leaveMessageDelete (parameter) {
  return axios({
    url: '/LeaveMessage/Delete',
    method: 'post',
    data: parameter
  })
}
/**
 * 留言屏蔽
 *
 * @author oo
 * @date 2020/6/21 23:50
 */
export function leaveMessageShiftTransfers (parameter) {
  return axios({
    url: '/LeaveMessage/ShiftTransfers',
    method: 'post',
    data: parameter
  })
}

/**
 * 
 *
 * @author oo
 * @date 2020/5/25 01:31
 */
 export function getMyAuthClassList (parameter) {
  return axios({
    url: '/ClassDynamic/GetMyAuthClassList',
    method: 'get',
    params: parameter
  })
}


/**
 * 
 *
 * @author oo
 * @date 2020/5/25 01:31
 */
 export function shieldclassDynamic (parameter) {
  return axios({
    url: '/ClassDynamic/Shield',
    method: 'get',
    params: parameter
  })
}



/**
 * 
 *
 * @author oo
 * @date 2020/5/25 01:31
 */
 export function cancelShield (parameter) {
  return axios({
    url: '/ClassDynamic/CancelShield',
    method: 'get',
    params: parameter
  })
}

